<style tyle="text/css">
    .modal-lg {
      width: 70%;
    }
  </style>
  <div class="modal-header">
    <h4 class="modal-title">题库管理</h4>
  </div>
  <div class="modal-body">
  
    <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
      <div class="form-group">
        <label class="col-lg-3 control-label">标题:</label>
        <div class="col-lg-6">
          <input type="text" class="form-control" ng-model="rulesinfo.title" ng-if="!rulesinfo.openstate" placeholder="标题">
        </div>
        <div class="col-lg-6" >
          <input type="text" class="form-control" ng-model="rulesinfo.title" ng-if="rulesinfo.openstate" readonly>
        </div>
    </div>
        <div class="form-group">
            <label for="inputDate" class="col-sm-3 control-label">类别</label>
            <div class="col-md-6" ng-if="!rulesinfo.openstate" >
                <select class="form-control" ng-model="rulesinfo.type" >
                    <option value="">请选择</option>
                    <option ng-value="info.value" ng-repeat="info in typelist">{{info.key}}</option>
                </select>
            </div>
            <div class="col-lg-6" >
                <input type="text" class="form-control" ng-model="rulesinfo.type_name" ng-if="rulesinfo.openstate" readonly>
            </div>
         </div>

         <div class="form-group">
            <label class="col-xs-3 control-label">详情</label>
            <div class="col-xs-6" ng-if="!rulesinfo.openstate" >
                <div class="ueditor" ng-model="rulesinfo.info"></div>
            </div>
            <div class="col-md-6"  ng-if="rulesinfo.openstate" ng-model="rulesinfo.info"readonly>
                    <span ng-bind-html="rulesinfo.info"></span>
                </div>
        </div>
      
     
 
    </form>
  
  </div>
  
  <div class="modal-footer" ng-if="!rulesinfo.audit">
      <button class="btn btn-success" type="button" ng-if="!rulesinfo.openstate" ng-click="save()">确定</button>
      <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
  </div>
  <div class="modal-footer" ng-if="rulesinfo.audit">
    <button class="btn btn-success" type="button"  ng-click="agreelog()">同意</button>
    <button class="btn btn-danger" type="button" ng-click="disagreelog()">拒绝</button>
</div>
  